import request from '@/utils/request'

// 在建列表接口
export function getInnerLists(params:any) {
    return request({
        url: '/overview/innerList',
        method: 'GET',
        params
    })
}
// 创建电站
export function addelectric(data:any) {
    return request({
        url: '/stationBoard/create',
        method: 'POST',
        data
    })
}
// 电站详情
export function getPowerStationDetails(id:string|number) {
    return request({
        url: `/stationBoard/detail/${id}`,
        method: 'GET',
    })
}
// 编辑电站
export function editorPowerStation(data:any) {
    return request({
        url: '/stationBoard/update',
        method: 'PUT',
        data
    })
}
// 删除电站
export function delPowerStations(id:string|number) {
    return request({
        url: `/stationBoard/delete/${id}`,
        method: 'PUT',
    })
}
// 移动用户列表接口
export function getTerminalLists(params:any) {
    return request({
        url: '/system/user/getTerminalList',
        method: 'GET',
        params
    })
}
// 电站头像上传
export function uploadStationAvatar(data:any) {
    return request({
        url: '/system/user/avatar',
        method: 'POST',
        data: data
    })
}
//   地址转换
export function getAddZh(params:any) {
    return request({
        url: '/stationBoard/regionForSearch',
        method: 'GET',
        params
    })
}
